﻿using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace SpaceGame.Util
{
    /// <summary>
    /// Represent a boundary between polygons.
    /// </summary>
    public struct Boundary
    {
        public static Boundary Empty = new Boundary(Vector2.Zero, Vector2.Zero);

        public Vector2 A;
        public Vector2 B;
        public Vector2 MidPoint;

        public Boundary(Vector2 A, Vector2 B)
        {
            this.A = A;
            this.B = B;

            //calculate midpoint
            MidPoint = new Vector2((A.X + B.X) / 2f, (A.Y + B.Y) / 2f);
        }
    }
}
